﻿using System;

namespace Test.AutoUpdater
{
    public class UpdateInfo
    {
        private Version _currentVersion;
        private Version _newVersion;
        private string _remoteUrl;
        private string _unpackPath;
        private string _tempPath;
        private string _fileMd5;
        private string _fileName;
        private long _fileSize;
        private long _receivedBytes;
        private string _note;

        /// <summary>
        /// 当前版本号
        /// </summary>
        public Version CurrentVersion
        {
            get { return _currentVersion; }
            set { _currentVersion = value; }
        }

        /// <summary>
        /// 最新版本号
        /// </summary>
        public Version NewVersion
        {
            get { return _newVersion; }
            set { _newVersion = value; }
        }

        /// <summary>
        /// 远程文件包地址
        /// </summary>
        public string RemoteUrl {
            get { return _remoteUrl; }
            set { _remoteUrl = value; }
        }

        /// <summary>
        /// 更新包解压路径
        /// </summary>
        public string UnpackPath
        {
            get { return _unpackPath; }
            set { _unpackPath = value; }
        }

        /// <summary>
        /// 下载文件临时存储路径
        /// </summary>
        public string TempPath
        {
            get { return _tempPath; }
            set { _tempPath = value; }
        }

        /// <summary>
        /// 更新包MD5
        /// </summary>
        public string FileMd5
        {
            get { return _fileMd5; }
            set { _fileMd5 = value; }
        }

        /// <summary>
        /// 包文件名
        /// </summary>
        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileSize
        {
            get { return _fileSize; }
            set { _fileSize = value; }
        }

        /// <summary>
        /// 下载接收大小
        /// </summary>
        public long ReceivedBytes
        {
            get { return _receivedBytes; }
            set { _receivedBytes = value; }
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note
        {
            get { return _note; }
            set { _note = value; }
        }
    }
}
